cmake_minimum_required (VERSION 2.6)
project ("Ejercicio7")

set(SRC_DIR src/)
set(OUT_DIR bin/)
set(CMAKE_BUILD_TYPE Debug)

include_directories("${SRC_DIR}")
include_directories("${SRC_DIR}IPC/Semaphore")
include_directories("${SRC_DIR}IPC/SharedMemory")

AUX_SOURCE_DIRECTORY ("${SRC_DIR}IPC/Semaphore" COMMON_SRC)
AUX_SOURCE_DIRECTORY ("${SRC_DIR}IPC/SharedMemory" COMMON_SRC)

file(MAKE_DIRECTORY ${OUT_DIR})

add_executable(${OUT_DIR}launcher ${SRC_DIR}Launcher.cpp     ${COMMON_SRC} )
add_executable(${OUT_DIR}productor ${SRC_DIR}Productor.cpp   ${COMMON_SRC} )
add_executable(${OUT_DIR}analizador ${SRC_DIR}Analizador.cpp ${COMMON_SRC} )
add_executable(${OUT_DIR}terminator ${SRC_DIR}Terminator.cpp ${COMMON_SRC} )